package com.springboot.study.tests.designpattern.template;

/**
 * @Author: guodong
 * @Date: 2021/4/26 13:29
 * @Version: 1.0
 * @Description:
 */
public class TemplateMethodDemo {

    public static void main(String[] args) {
        //统计String的10000次操作和int操作相加10000000次的时间差
        TemplateMethod templateMethod = new StringOperate();
        System.out.println( templateMethod.typeOperate());
        System.out.println(new IntOperate().typeOperate());
    }

}
